import string


path = 'D:/006564/Desktop/tongji.txt'
a=0
with open(path,'r') as file:
    for lines in file:
        field2 = lines.strip().split(' ')[1]
        field1 = lines.strip().split(' ')[0]
        print(field2)
        a = a + int(field2)


print('sum',a)



